const {Schema,model} = require('mongoose');

//定义Schema
var usersSchema=new Schema({
    nickName:String,//昵称
    avatarUrl:String,//头像
    openid:String,//唯一标识
    gender: String,//性别
    province: String,//省份
    state:Number//状态
},{
    versionKey: false
});

//配置数据模型

const wxUserModel = model('USERMODEL_DB',usersSchema,"wxusers");
//暴露模块
module.exports= wxUserModel;